package com.xyht.sca_s.student_manage_system.modules.appDynamic.controller;


import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.modules.appDynamic.entity.req.AppConditionListReq;
import com.xyht.sca_s.student_manage_system.modules.appDynamic.service.AppConditionListService;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 * 条件展示表 前端控制器
 * </p>
 *
 * @author XYHT
 * @since 2023-09-06
 */
@RestController
@RequestMapping("/appConditionList")
public class AppConditionListController {
    @Resource
    private AppConditionListService appConditionListService;

    @ApiModelProperty(value = "添加条件展示")
    @PostMapping("/add")
    public ResponseResult addAppConditionList(@RequestBody AppConditionListReq conditionListReq) {
        return appConditionListService.addAppConditionList(conditionListReq);
    }

    @ApiModelProperty(value = "展示可设置条件控件")
    @GetMapping("/list")
    public ResponseResult displayConditionalControl(@RequestParam(value = "appId") String appId) {
        return appConditionListService.displayConditionalControl(appId);
    }

}

